home *** CD-ROM | disk | FTP | other *** search
- Path: diable.upc.es!eduarde
- From: eduarde@ac.upc.es (Eduard Elias i Vila)
- Newsgroups: comp.lang.c++
- Subject: sampling from a sound card in C++
- Date: 14 Mar 1996 19:29:48 GMT
- Organization: Universitat Politecnica de Catalunya
- Message-ID: <4i9s3c$t90@diable.upc.es>
- NNTP-Posting-Host: florensa.upc.es
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso8895-1
- Content-Transfer-Encoding: 7bit
- X-Newsreader: TIN [version 1.2 PL2]
-
-
-
- One of my students is trying to built, with me, a program able to determine
- the pitch of a note singed in front of a microphone connected to a soundblaster
- compatible card.
-
- He is programming in Visual C++, on windows. He doesn't have net access, so
- I report the following problem:
-
- To read from the sound card, he uses a sentence like this:
-
-
- Error = waveInOpen( ... , Window1, 0, CALLBACK_WINDOW);
- ^^^^^^^
-
- The problem is with the Window1. It is declared as a HWND. He saw that,
- depending on the definition or not of STRICT, this type is a UINT (when
- STRICT is not defined) or a pointer to a struct (cont struct::HWND__ __near*
- when STRICT is defined).
-
- The call waveInOpen needs Window1 to be a UINT but if he undefines the
- symbol STRICT, then some other problems appear at link time.
-
- Can somebody tell me what the STRICT symbol is supposed to mean? How to
- avoid the linking problems when it is undefined? or how to convert the pointer
- Window1 to a UINT if defined? Is there any other way to send a buffer to be
- filled with samples without use this family of calls? ...?
-
- Any help will be very, very, very appreciated. Thanks in advance.
-
-
- --
-
- Eduard Elias i Vila
- eduarde@ac.upc.es
-